#include <windows.h>

int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
    HDC hDC = CreateDC(TEXT("DISPLAY"), NULL, NULL, NULL);
    POINT pCurPos;
    RECT rRect;
    HBRUSH hBrush = (HBRUSH)(CreateSolidBrush(RGB(0, 0, 0)));
    int iConst = 1;

    while (1)
    {
        if (GetAsyncKeyState(VK_ESCAPE) != 0)
            break;
        iConst += 3;
        GetCursorPos(&pCurPos);
        rRect.left = pCurPos.x - iConst;
        rRect.top = pCurPos.y - iConst;
        rRect.right = pCurPos.x + iConst;
        rRect.bottom = pCurPos.y + iConst;
        FillRect(hDC, &rRect, hBrush);
    }

    DeleteDC(hDC);
    return EXIT_SUCCESS;
}